<div class="form-container">
	<form id="form">
		<table class="tableform">
			<tr>
				<th style="width:130px;">姓名：</th>
				<td>${(currentUser.truename)!}</td>
			</tr>
			<tr>
				<th>用户名：</th>
				<td>${(currentUser.username)!}</td>
			</tr>
			<tr>
				<th>邮箱地址：</th>
				<td>${(currentUser.email)!}</td>
			</tr>
			<tr>
				<th>创建时间：</th>
				<td>${(currentUser.createTime?datetime)!}</td>
			</tr>
			<tr>
				<th>最后修改时间：</th>
				<td>${(currentUser.createTime?datetime)!}</td>
			</tr>
		</table>
		<br>
		
		<table class="tableform">
			<tr>
				<th style="background:#438EB9;color:#fff;text-align:left;" colspan="2">权限：</th>
			</tr>
			<tr>
				<th style="width:130px;">角色：</th>
				<td id="roles"></td>
			</tr>
		</table>
	</form>
</div>

<script>
	$(function(){
		$.post("${ctx}/manager/system/role/selectRoleIn/${(currentUser.auth.role_ids)!}", function(result){
			var roles = "" ;
			if(result.length > 0) {
				$.each(result, function(i, p) {
					roles += p.name + "&nbsp;&nbsp;&nbsp;" ;
				});
			}
			$("#roles").html(roles);
        });
		
	});
</script>

